package indi.zhifa.core.multidatasource.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 数据库表
 * </p>
 *
 * @author 织法
 * @since 2024-10-17
 */
@Data
@Schema(title = "SysDbEntity对象", description = "数据库表")
public class SysDbEntity {
    @Schema(title = "主键")
    Long id;

    @Schema(title = "环境")
    private String profile;

    @Schema(title = "数据源组")
    private String datasourceGroup;

    @Schema(title = "数据源类型")
    private Integer datasourceType;

    @Schema(title = "是否为默认连接")
    private Boolean primary;

    @Schema(title = "数据库标识")
    private String dbKey;

    @Schema(title = "驱动")
    private String driver;

    @Schema(title = "数据库链接")
    private String dbUrl;

    @Schema(title = "数据库用户名")
    private String dbUser;

    @Schema(title = "数据库密码")
    private String dbPasswd;

    @Schema(title = "最小连接数")
    private Integer minIdle = -1;

    @Schema(title = "最大连接数")
    private Integer maxPoolSize = -1;

}
